<?php
class BaseForm
{
    public $obj;

    public function _requestToForm($controller)
    {
        $request = $controller->getRequest();
        $arrKey = array_keys((array)$this->obj);
        foreach($arrKey as $key)
        {
            $this->obj->$key = $request->getParam($key);
        }	
        return $this->obj;
    }
}

?>
